package com.techie.mdm.appbar.showcase.command;

import com.techie.mdm.appbar.showcase.AppBarBean;
import com.techie.mdm.appbar.showcase.AppBarPropertiesDialog;
import org.springframework.richclient.command.AbstractCommand;
import org.springframework.richclient.command.ActionCommand;


public class NewAppBarCommand extends ActionCommand
{
    public NewAppBarCommand()
    {
        super();
    }

    @Override
    protected void doExecuteCommand()
    {
        AppBarBean bean = new AppBarBean();

        AppBarPropertiesDialog dialog1 = createAppBarPropertiesDialog(bean);
        AppBarPropertiesDialog dialog2 = createAppBarPropertiesDialog(bean);

    }

    private AppBarPropertiesDialog createAppBarPropertiesDialog(AppBarBean bean)
    {
        AppBarPropertiesDialog dialog = new AppBarPropertiesDialog(bean);
        dialog.setModal(false);
        dialog.showDialog();
        return dialog;
    }


}
